import React from 'react'
import { Switch, Route, Redirect } from 'react-router-dom';
import Clean from './Clean'
import Getup from './Getup'
import Back from './Back'

function Default(props) {
    const baseUrl = props.match.path;
    return (
        <div className="recordManage">
            <Switch>
                <Route path={baseUrl + "/getup"} component={Getup} />
                <Route path={baseUrl + "/back"} component={Back} />
                <Route path={baseUrl + "/clean"} component={Clean} />
                <Redirect exact from={baseUrl} to={baseUrl + '/getup'} />
            </Switch>
        </div>
    )
}

export default Default;